<!DOCTYPE html>
<html ng-app="myApp" ng-controller="roleInputController" xmlns:th="http://www.thymeleaf.org">
<head th:include="/common/head :: commonHead('编辑角色')"></head>
<!-- 引入zTree_v3 -->
<link rel="stylesheet" href="/static/plugins/zTree_v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
<body>
<div style="height: 20px;"></div>
<div  data-ng-init="load()" style="width: 90%; margin: 0 auto;">
    <form lay-filter="inputForm" class="layui-form" action="">

        <input id="roleId" type="hidden" th:value="${roleId}" />
        <div class="layui-form-item">
            <label class="layui-form-label">角色名称</label>
            <div class="layui-input-block">
                <input ng-model="entity.rolename" type="text" name="rolename" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">权限分配</label>
            <div class="layui-input-block">
                <ul id="treeDemo" class="ztree"></ul>
            </div>
        </div>

        <input type="hidden" id="btnSubmit" ng-click="submit($event)">
    </form>
</div>
<span th:replace="/common/on-load-js :: commonOnLoadJs"></span>
<script src="/static/plugins/zTree_v3/js/jquery.ztree.core.js"></script>
<script src="/static/plugins/zTree_v3/js/jquery.ztree.excheck.js"></script>
<span th:replace="/common/angular :: angular"></span>
</body>
<script src="/static/admin/js/role/input.js"></script>
</html>